Rendering seems OK, but there is a bug /* it is rendering image and a half */
either with converting 1D (GPU) to 2D (CPU) array
or some bug with the BLOCKs and THREADs