title: How can I pass an image to a template in Django?
body: <p>Suppose that the corresponding function in views.py looks like</p>
  
  <pre><code>from PIL import Image
  def get_img(request, img_source)
      base_image = Image.open(os.getcwd() + '/deskprod/media/img/'+ img_source + ".png")
      #Some editing of base_image done with PIL that prevents image from being directly loaded in html
      return render_to_response('get_img.html', {
          'base_image': base_image},
          context_instance=RequestContext(request))
  </code></pre>
  
  <p>How can I then display <code>base_image</code> in the <code>get_img.html</code> template?</p>