Added some useful stuff for working with potrace library