Pixelation algorithm fully works now