Automatic canvas resizing and placement.