add image_size option validation