[libcontacts] Reverse the logic for avatar data inspection

Since QtVersit removes the encoding parameter, it will be more reliable
to test the data to see if it contains a resolvable URL or file path,
and fall back to trying to interpret the data as an image.
Merge pull request #33 from matthewvogt/avatar-data

[libcontacts] Reverse the logic for avatar data inspection