changed photo id to an integer