fixed image upload

hopefully for good