changed the image upload to use the path module instead of /