bugfix didn't work if thumbnail is exact right size.