Fix diagram sizing. Move clipboard stuff to model, where it belongs.