Runtime check on mono, fixing bogus png image