uploading of image on client now working