an attempt at fixing imagemagik, a common package on linux for image manipulation.