Well, the only thing that springs to my mind is making sure your screen resolution is sufficiently high so the image actually shows up in the viewport. See
and
https://docs.katalon.com/katalon-studio/tutorials/headless_browsers_execution.html#configuring-headless-browsers
on how to set the screen resolution for the headless mode.