CHANGED:applied the image file upload func