fixed out of memory bug
	modified:   rectifyImages.m