Setting umask before creating files when generating a challenge image.