Photofragment imaging from mass-selected ions using a reflectron mass spectrometer I. Development of an apparatus and application to Mg+–Ar complex