Fixes #42. Overwrite thumbnail only if changed