fixing addphoto