Copied in dove drawing code