Replaced the callback in Photo with a deferred