GIMP is a great program for this kind of things.
The easiest way I know, with the layer:
-open your image in GIMP, let's say it's 256x256
-go to: layer -> scale layer
to resize 50% smaller (half size)
-the result: image is the same size just layer is smaller and the rest is transparent
The great thing is that it's automatically centered, just export.