Moved gallery upload to modal window.