Fix image context error.

Fix image context error.