Change name of coords array to dump_position.
Modularize writing of position and image in dump_h5md.