support jpeg and xml
fix build
Merge pull request #5 from zamiang/jpeg

@craigspaeth Support jpeg and xml