Fix for extraneous black tiles being generated for images whose height or width are exactly divisible by the tile size (256)