It couldn’t have been Hubble, because the images in that composite photo have round borders, whereas Hubble’s have that peculiar “stepped-L” shape.
Its a GALEX UV photo.
The story linked above was that Hubble revealed a gaseous halo around Andromeda.