New image transformation cache

Since the image transformation and image conversion (during content negotiation) are now split up, the image transformation cache no longer caches the conversions. This PR fixes this.