Adjustments to region feature extraction to support square patches and regions without padding