grub2ext: update getImgClipRectByResolution()