add missing variables for addPhoto()