How to set condition for 2 sets of radio button images