Synchronize photos with the rake task.