CHANGE: dirty hack to solve width>height case. This must be fixed to a general two fields comparison method.