add fromPixel, toPixel