added file upload
fixed image upload