bugfix: showing incorrect image as thumbnail if image is not available.

close #46