Use platform-specific routines for decoding/encoding images