Split doFlash() to do_flash() and do_download() methods.

Is this for checking existing image files?