Sets the image type.