image drawing memory/decoding optimizations