The CImg Magick++ API calls were segfaulting themselves