Ultrasonic scanning, imaging and recognition of bottles