imgconvert: Move the shrink functions only where needed