This is great! I have a small correction. I was trying to get it to work but the images at the bottom were both of the previous post. So I did some digging and found that line 34 should be: $nextPost = get_next_post();
(It currently says: $nextPost = get_previous_post();)
I changed it and now it works perfectly!