Fix the test to discover empty output. Related to #7.
Fix the bug related to creating JPGs. Closes #7.