Added validation for image mime type (fixes #68)