Removed several validity checks to improve speed.
Bug fix: Handles if no design domain has been specified.
Minor clean up in Painter class.