add the automatic bins number estimation after analyzing each image,
fix the bug of not using the automatically updated bins for 'Rice Rule' and 'Sturges formula'
use fileparts function to extract the file name without its extension