changed photos code