Fix to can input various image

And add test. run it like this;

    $ TEST_JPG=kara.jpg go test -v