Extended image support and support for querying page size and margins.

I added functions for improved image support and for querying the size and margins of the odt page. There are also conversion functions to convert relative percentage values for width and height to the corresponding values if margins are substracted from the page size. Some of the functions will be used in the upcoming ODT support patch in the wrap plugin.