bug fix to correct for refimage format