Fix run-time warning that says we are drawing an image with no current context.
Adjust file headers.