added constraint of unique filename to PhotosFormFactory