Normalize line endings
Add high quality bitmap scaling mode on window
Normalize line endings
Use DrawingGroup in EncodeAndSave to save high quality scaled bitmaps