Osirix is for Mac platforms only. If you are using another operating system, you might need something else. Matlab has an anonymize function in their image processing toolbox, and there are a couple other tools available, in ImageJ, for instance. There was this old thread about writing DICOM files that might help.