sample to change camera resolution for mac os x