Fix image mode.