IntensityPatches and RegionPatches for Image Recognition