playPause working and image toggling