Fix first key is not used erroneously
Cache contact photos to make UI more fluid
Cache input file thumbnail.