Pulled out some Photo functions