fix camera issue for older versions of android