Application of image analysis techniques to the investigation of penetrative convection