Gravar-mail: Optimisation of bio-based building materials using image analysis method