Below is an example to clarify how you should set the ResolutionUnits for Density since it is a read only property.
image.Density = new Density(72, DensityUnit.PixelsPerInch);