now image upload and download works