Update generateWPTImages.m

Split filterGroup to filterGroup and maskGroup. Use filtered images for analysis, save masked images.