add compression middleware for images