add unit-test for jpg image