/**
  * Send response headers (using the header() function) that are necessary to correctly serve the
  * image data for this image, as returned by getImageData().
  *
  * Note that the headers are independent of the language or image variant.
  *
  * @param ResourceLoaderContext $context Image context
  */
 public function sendResponseHeaders(ResourceLoaderContext $context)
 {
     $format = $context->getFormat();
     $mime = $this->getMimeType($format);
     $filename = $this->getName() . '.' . $this->getExtension($format);
     header('Content-Type: ' . $mime);
     header('Content-Disposition: ' . FileBackend::makeContentDisposition('inline', $filename));
 }