Implementation of basic drawing interface.