Middleware/handler for scaling image in golang