Moved gallery editing work into a celery task.