corrects exporting of images and pdf
Merge pull request #209 from kamalpreetgrewal/master

corrects exporting of images and pdf