image format convertion using gdi+, old demo code, sort save