translation of image name to id