pixmap::downsample optimization (still sucks though)