Added padding option to the image renderer.