Fix test on windows

A png file is guessed as image/x-png sometimes, as windows has
mime type info pulled from the registry.

Using an extension of jpeg, which works the same on all the platforms.