How to add conditions to radio buttons with images.