adding support for guessPatchSize.m