Install LibreOffice on your server. The latest versions of LibreOffice have a command line interface that will work for saving your document as a PDF. (libreoffice --headless --convert-to pdf filename.doc[x])
Then use e.g. imagemagick or for example the LibreOffice Draw conversion options to convert the PDF to an image.