store images with the appropriate extension:

Instead of redbull.jpg?fm=png generating an image named
giraffe/redbull_png.jpg in S3 we'll now generate giraffe/redbull.png.