Image gradient histogram's fitting and calculation. Issue 1 (18th January 2018)