Refactored render_media, exposed it to jinja, added album.html