Added page eject at chapter end and local image loading