Adds fixes to allow for the upload of non-images

Close #21 | Applies fixes for the upload of non-images