Support non-png output - figure it out from image extension.
Return 304 if the client already has the modified file.
Load the original PilImage only if it's actually needed - otherwise small thumbnails load all sorts of images.