improve footnote detection
Use png for image formats instead of gif. IE has problems with gif that have large dimensions even if the file size is small.
Merge branch 'master' into production