tie image name to filename