Adjust on quadfy_image for treat images with rows or cols that % 2 != 0.