More efficient variant to put photos in Core Data