fix setter and getter for photos