fixed tor image upload issue