You will need at least an ultra sound, X ray will not do. The liver doesn't feel pain (normally), but your bile duct system does. And since you indicate that food can trigger this pain, it also triggers your biliary system as well. Only a US or MRI will provide the needed information, and US is much cheaper than US.