sets the path to the folder with images
since version 4.0 the function is deprecated, as it is no longer needed