Add retry loop during imgur method
Change debug mode to not erase file