Layout if needed before rendering view to image