PDF supports Images

Pdf now shows user profile image in the exported file + removed a bug
shown by scruitnizer