Fixed using imagemagick for the server, and the scan page now outputs a preout and postout log file in /uploads/logs, although it is hardcoded to the location in the server.