Thumbnail filter was not applied when allow_upscale=true and one dimension is exactly the same

e.g. 100x73 was not resized to 100x100