support maximum selection and logarithmic scale in ncsvtopgm