added functionality to allow images in gradient fills

working code for gradient fill with an image