Update generateWPTImages.m

removed duplicate call to imwrite