Added display option and inifinte loop to camera example