Abstract image uploading

Refactor to create reusable components for image uploading

* Template upload_image.html
* JS module imageUploadPanel
* Python function save_uploaded_image()