Cleanup in motorarm.
Image buffering in contour gen.