remove image optimization code