Unveiling the Magic: How Smartphone Cameras Work