Adding onPhotoUpdated method to plugins. #1442