Hubble sees the beautiful demises of dying star