resolveMedia/Image fix

Functions now try to find the files with and without the docRoot.