more debug prints for imwrite