image and text optimizations