major changes to the image fetching and selecting algorithm.  a JSON list of posts is retrieved first instead of the static html to improve efficiency.