fixed camera code to work with glass, but image not loading due to large size