bugfixing image upload