fixed thumbnail image show logic