Add test of image encoding
add to gitignore