Fix bug with laying out image nodes at the top of pages