Fix image context error.