add model for uploaded image, added file validation options