dynamic pixelization code finished and working