added function for getting image names