Reduce frame size, add some rotate code (work in progress) and add code for using front camera