fixing uploading image to webserver