Improved image/file uploading