some more code regarding photos and payments