fixes bug 1081282 - Disallow file uploads that aren't images