added matlabpoolClose/matlabpoolOpen, imresizeKeepAspect functions