Fix picture thumb nailing and persist attributes changes through a thumbnail change