making camera instance work with the flashing system