image optimization, config viewport