Added file uploader to main ui. Changed image.js to more flexible format.