Added smart crop
Added getGreyhistogram count