center output canvas
remove unused code
fix switching between photo/video
extract "chroma key" code into separate module