add a simple example generator, and test it with pan_cart.
change the plot function to image for checkerboard and pan_cart.