Scan image with WPF and auto crop it