Bad format and quality requests return 400. Closes #31.

Also fixes webp in tests. Not sure how this was passing before