replaced the imagemagick stuff with imagesclr-lib