Added out parameter to function imagemagick_convert;
Function system changed to popen;
If command "convert" not found, returns -1;