use the supplied name of the image file for working out the stored name