Fix bug of incorrect PNG height and add -count-only option to generate band offset info file