fix upload dir when namespace is set
settings and image name are checked first
namespace proccessing is moved to ImagePipe::request because variables are not expanded earlier