Web image search sometimes returns incorrect values for thumbnail size

Some queries return the wrong dimensions for thumbnails. E.g. currently a search with a URL like https://api.bing.microsoft.com/v7.0/images/search/?q=nxivm&count=50&offset=0&safeSearch=moderate&setLang=en&mkt=en-US&originalImg=true returns results that have mostly incorrect sizes for the thumbnails, e.g.
"thumbnail": {
"width": 300,
"height": 300
}
when the actual thumbnail image dimensions are different.
This seems to occur for random queries, many other queries will return the correct sizes for all thumbnails. Even with the same query, we have seen it return incorrect results then a week or so later the thumbnail sizes will now be correct. This breaks our app as we rely on correct thumbnail image dimensions in order to show correctly sized thumbnails in the UI.
Thanks for that info. I'd rather have it return the correct dimensions as it is supposed to without having to hardwire them though, as we want the thumbnails to be scaled versions of the original while maintaining the original aspect ratio. A possible work-around to this bug meantime is to use the original width/height aspect ratio to calculate the correct thumbnail width (since the height seems to be correct in all cases I have seen, just the width is wrong). Would be nice if MS could fix this bug so it would work as intended though. Strange it seems to apply to specific queries and not others, and it seems that the queries that return incorrect sizes will at some point later will actually start returning the correct dimensions,