Use chai for more descriptive test failures.
Added driver tests for jpg/png.