An image, or null on error
This method is only valid if the current context (the context at the top of the stack) is an image context.
This function can only be invoked from the UI thread.