Add a getter and setter for the image type