Updated sync to handle ciniki_image_refs