Replace gif by a svg when loading images