- Updated code to work with actual camera