added a high level preprocessing method for allowing desired window
sizes.