1. Gimp can directly edit dds files.
2. Gimp can handle layers so you can copy one icon frame (attached), add your image, cut off the edges, merge and copy all over an existing atlas on a new layer to position everything properly and than remove or hide the old layer. Than you export it to dds. That's all.