Fixed camera capture function for oF 0.8.0