Fix imagick intertpreter. Add resources of type jpeg to gd lib