Changing handling of page images

Now automatically incorporating a page image into the page layout
One more fix for page imagss