Fix image_resizer issues with an explicit closure.