Changes for compatibility, update deprecated functions

- Converted file EOL to LF for compatibility with git tools.
- Changed FolderItem.Save to Picture.Save.
- Added method to guess Pictures's SaveAs format from the file name.
- Changed NewMemoryBlock to new MemoryBlock.
- Changed references to Window.WinHWND to Window.Handle.