Actually, the "saveimg" command is able to save the viewport shot as an image, and the file -> View -> Render-> "render to file" command is also able to take shots of the viewport but for some reason neither is able to display a rendered picture with acad lines.
Thanks