Resize contact photo on upload. Fixes #296