How do I show an image using conditions?