Is `template.getImage()` guaranteed non-null?