My images paths contains NULL
This is a known bug with the media module. See Issue #1351890: Wrong upload destination folder "null" and Issue #1364676: Upload path. The latter of the two contains a patch to fix this.