debug for quatratic pictures
added file upload
Histogram added, automatic threshold computation, debugging