added ability to draw checkerboard on beamer