Wrong Base Directories

On Windows servers the preg_replace wouldn't work and cause the image
upload directory to update along with the base directory