Add Image.createGradient() method.