Add cropping to image creation

Also handle setting response types a bit better by returning a response
built from the StreamingOutput.