Image analysis for core geological descriptions: strata and granulometry detection