Constraining mass–diameter relations from hydrometeor images