Add shapes example and fix bugs with rendering.