added implementation of page break
added support for figures