Code to grab synchronous images from RGB and IR sensors.