This is a refactoring task to extract memory allocation and ownership from ImageDecoder and ImageFrame though some kind of a lock and unlock operations. This allow an external body to control the memory allocation and caching.
This bug is not valid any more. Need to have a more concrete problem to solve.