Update writemask.py

Changed verification option in astropy.io.fits.writeto from 'exception' to 'warn'. Non-standard fits header keywords should now produce a warning rather than terminating the pipeline.