Add support of image-mode.