Added image optimization.