Ripped out old gallery upload code