added padding option to autocanvas.