fixed image uploading. TODO: put image in a static folder for users to access it