Particle size analysis by image analysis