Vec::new(); image .write_to(&mut Cursor::new(&mut w.

In which case, one will be nil, use lambda for functions with nil.