try to avert problems when $_SERVER['DOCUMENT_ROOT'] is different than MODX_BASE_PATH

https://github.com/oo12/phpThumbOf/issues/4