Add a resizemap directive
Use resizemap directive in animation example