Added show3dPen and hide3dPen blocks to speed up the rendering