Sets the image type attribute.