optimized pixelation using matrix operations, also added simple pixelated webcam display