Thanks gwwilk
With some small changes, ie change preg_match to preg_match_all, and some looping code you could show any number of past images as well, this was what I started with but like you the REGEX got me so I went with get newest image only first.
I will have a go at multiple images next