Resize images only if they are larger than comparasion