Fixed JS logic that adds flickr images to the markup