Add snapshotWithShapes(width, height).