Replace gif files with data uris