Allow PDF uploads in image upload

@jrbl & @stvstnfrd - Changes to allow PDF uploads using image upload feature.
In the context of what was there aready, I think this is a reasonable way to do the 5% solution.