fix encoding error in imgur; add error_guard in load_image