fixed trim_margins to still honor hardware margins
https://github.com/fablabnbg/inkscape-silhouette/issues/6