get rid of dynamic_cast in PolygonGenomeFactory
refactored rendering code, removed dynamic_cast hack