Relax tile tests to allow sizes greater than SizeX or SizeY

Many TIFF files will have a tile size greater than the image width or
height, often so that the tile size is a multiple of 8 or power of 2.
BD Pathway: fix optimal tile height calculation

This prevents the optimal height from being 0.