Attempting to fix take picture bug