Quantifying biofilm structure using image analysis