add image upload and download functionality