factor out photo task creation dupe