more image optimizations