[repo] image thumbnail & preview: bug fix