changed userImageFile to file and userImageFilename to filename