For simplicity this example has omitted HTTP signatures, however in a production environment it's very important to secure your images.
While the outputImage() method works okay, the getImageResponse() method is recommended. This allows your application to handle the outputting of the manipulated images. This approach does requires a little more configuration. See responses for more info.
outputImage()
getImageResponse()