When I first saw the pictures in the book, I notice something strange, like not being the same boat. The legend claims 2 photos of a type IXB and I looked to the bow of both boats, and couldn't see a type IX bow. Even the background is diffrent (for a sequence photos...

).
For me, both photos are from ww1 u-boats (possibly). The flag of the second could help identifying.