added simple image verification that prevents users to upload non image files