Tutorial on Image analysis using R