Add profiling to image decoding.