Change to metafeature approach: Move functions into own classes, so ImaGen and topographica parts are independent