Layout Subtree before creating image