Added Rob's changes to createPics.m

Added Rob's changes to createPics.m - that mainly check for OS compatibility