sets path to the directory where used images are located
since version 4.0 the function is deprecated, as it is no longer needed