changes to resource model to validate the content type of the image to be uploaded