fixed the problem with the photos not uploading pproperly