Fix issue #148: relink image on thumb images