Use the image directory name to detect what type of image dir we have,