add failed-block function in blockrecord, correct fn names in parse_image