Added support for 2images per page