Start with image hashing
Cope with db filename without dir part
Add structure based signature calculation in perl.