rectThe rectangle in which to draw the image (using the coordinate system of the graphics context).blendModeThe blend mode to use.alphahe opacity of the image as it is drawn
This can be used from a background thread.