render.ml updated to support newer ImageMagick and relative filepaths