It seems that if the default images sizes have been changed, then there will be an instance when the item.sizes.thumbnail
will be underfined.
I ended up building in a check for this and if thumbnail was not defined, then I use the original image instead