NASA's Hubble Space Telescope photographed colliding galaxies after recovering from a month-long mystery glitch