Temp image and hocr files are now written to the temp directory on heroku