Optimize Camera code

Avoid allocating memory
Fix broken Github link