Radio buttons with images not working with conditions