k_costimg() works