Initialize context and image to NULL.