fixed image uploader crashes