netteForms.js: Added image file type validation

This adds a client-side validation for images (`Form::IMAGE` in form definition).

I would appreciate some testing first, I will try to test it myself in some browsers.