added sendRandomPixels method