Gets type of image.