Writing an IMG File to Flash media