limited file upload type to images only and added automatic file upload on selection