Fix incorrect layout in Waterfall style when original image size is different than the tile image size.

- Remove debugging code.