using now previewcallback with buffer. camera is now opened in an own
thread