created pyramid_tiff_format function

I needed a way to create ptif images on the fly for iipimage javascript. The change format was useful but in order to keep the layers in the tiff file I needed to create this new function.