Size and Shape Analysis of Sedimentary Grains by Automated Dynamic Image Analysis