pmPixelate(pm, w, h) returns the pixmap pm composed of blocks of the same colour, with width w and height h.