Fix hashing. Also, gitignore

This fixes the necessary

https://github.com/minotar/imgd/pull/133#discussion_r22001132