Updated photo uploader. Updates gallery JS.