Fixed incorrect url parsing
Added checks for required programs curl and imagemagick