Calculation of block width / height.
Added controls for debugging.