small additions for image pixalizing