fn calculate_image_memory(width: u32, height: u32) -> Option<u64>
Calculate the memory required to decode an image in bytes. Returns None if the calculation overflows.