Facebook photos glitch gives insight into how social media uses AI