added some stuff to make image.cl build better + debugging