replace scanning library to use avfoundation sdk instead