Modified templates to use MEDIA_URL to point to images. Also added some docstrings and minor refactorings.