aargh, fixed this again
support autoscaling of rows in pgms
pgms: allow inverting black/white