Adds some camera preview code