Allow PDF uploads in image upload

@jrbl & @stvstnfrd - Changes to allow PDF uploads using image upload feature.
Interestingly enough, we _do_ confirm the reported MIME type on the
back-end, but there is no server-side check for the max filesize.