INFOGRAPHIC: How capital gains tax works