use arbitrary lenght argument for write_bytes. BitmapData class