Correct a small bug abour the number of pictures per page