Add image, mass and id to TRAJECTORY_NAMES.
Skip reading of modules if 'h5md/modules' is absent.