Implement button commands on image