Added photo functions