Add support for switching mode and resizing tiled content