maybe revert: setPixel applies directly to cache. but, performance issues