Powder sampling and characterization by digital image analysis