Updated to make pyramids work with greyscale (ie renderer.num_channels==1)
__init__.py: updated demo('optimization') example