update image show logic