added support for x/y/width/height parameters for border/background images