appends missing '.' to file extension for all jpeg files in add_photo usecase