Add content-length-based image re-encoding filter