use webp when possible, otherwise don't change extension
one var too many
spaces
Merge pull request #213 from Wikia/HG-170-Transparency-in-images

use webp when possible, otherwise don't change extension