Text this: Mathematical modelling of gas bubbles and oil droplets in liquid media using optical linear path projection