An imaging optical technique for bubble measurements