The galaxy got its unusual name because when the Hubble Space Telescope snapped a photo of it 20 years ago, it resembled a hat with a brim