Using `cot_img_check_memory()` to avoid memory crashes since Siena 0.9.15.