Tiny refactorings of Image, Resize.