adamzap/landslide — pull request #110 by ackdesha (2012-05-03 19:18:35+00:00)
Title: fix to embed custom theme images

Hi adamzap,

This commit fixes an issue I found where custom theme images weren't being embedded when using -i.

Rendering would fail because ``False`` would be returned by ``encoded_url = utils.encode_image_from_url(img_url, source)``.

The custom theme directory wasn't being used (a missing file makes ``encode_image_from_url`` return ``False``).

I think I've coded it an a way that hopefully won't introduce any regressions (tested with built-in themes, without -i, etc).

First pull request for me so let me know if I need to do things differently. Thanks.