added self keyword to deal#photo