Cleaned code and optimized node images to use the url for the smallest size image among the provided image urls in JSON