fix incorrect mx2/my2 calculations in PImage