added a sass function to get the magic selector file name from the image object