Moved render mechanism to base class (DRY)