ETA on the U-505 adventure: Task force commander Daniel Gallery was quite a man and apparently quite a character; post-war he wrote some entertaining navy-based humor books ("Captain Fatso" is one I read and remember, about a colorful Chief).
In June 1944 his task force set out on their most famous Atlantic sub-hunting cruise with the explicit goal of capturing one.
In looking up that painting I tripped across two articles of Gallery's in the Naval Institute publication, one on grabbing the U-boat and the other on his pioneering work with night-time escort-carrier flight operations, in the cruises just before the capture. I have not read the U-505 piece yet, but Gallery hints these night ops were a factor in locating that sub (new to me).
No surprise, but by 1944 U-boats in the Atlantic were highly allergic to surfacing during the day, and did all their battery charges etc. after dark, so flying at night was critical to finding them.
One dirty little secret: To bring their babies in safe on moonless nights, Gallery's team was not averse to lighting up the flat-top like Times Square at New Years. He describes the crew as more than willing to accept the risk of a midnight torpedo as the price of bringing their precious flight crews home safe - and of having a chance a bagging a U-boat. (Something like: Planes locate the sub on the surface at night, and a destroyer rushes over to drive and hold it under while the task force maneuvers into range and position.)
Also in those early night ops, sometimes the carrier's radio controller would notice a plane (mainly Avengers I think) that was no longer responding on the radio, and the ship would beam a giant spotlight straight up into the sky to guide them home, visible over hundreds of square miles of sea. (I've read of similar episodes in the Pacific.)
Gallery was doing all this in the spring of 1944, soon before the war's most famous "light 'em up" incident, on the other side of the world, which he refers to in this passage:
'A bench mark on the state of the art in 1944 (carrier ops at night) is that wild night in June, right after the Marianas Turkey Shoot, when Admiral Marc Mitscher gave the order to, “Turn on the lights.” Two hundred planes got caught out after dark that night. Nearly half of them wound up in the water. In 1944, flying off even the big
Essex-class carriers was still very much a daytime job.'
ETA: Nighttime flight ops were not a factor in the U-505 capture.