Updated template tag for getting image to be django template compatible