Error models will no longer end up being formatted as images if an image
extension is present in the URI. Fixes #150.