image update for next and prev