Converting image into pixel matrix using raster.
Test Image
Pixels in the matrix averaged.
Distorted Image as output.