support image_size gem.