Improving transformations / outline painting for images