finished ktx writer, added missing stuff to core formats