Fix problems with pictures.
Merge pull request #18 from xonev/master

Fix problems with pictures.