made changes to adjust for image URLS with parameters at the end