Some little improvements, specially on ImageMagick

And one really important on the permissions of directories.