Added QMatRead implicit width and height calculation.