added functionality to allow images in gradient fills