added hit state to toggle image display but unfortunately it toggles all the images