I know this is not the place to ask but I am trying to get all the help I can from anyone I could. Apologies if this is totally unrelated.
What I am trying to do is to pick the first image in the post and use it as the background for the post container (which is displayed in the archives/blog pages).