Added common base class for shapes and added rendering support for ellipses.