trying fixing image upload and download