rewrite imgur handling to its own class