added cud utils for photos endpoint