canvas/pad: add margin_pixels setter/getter