Move demo camera code to helper library