added camera preview and display preview