Ah, sorry...this looks like it's only used in one place below, so remove the variable declaration and just call
```
.createFromImageWithSizeInZone(template.getImage().getUri().toString(),
```
?