parse_riff() error checks, raw2image_ex() return code check