fix imgur upload

Try to fix imgur upload codes.