added block-wise rendering