sets the path to the image's folder
since version 4.0 the function is deprecated, as it is no longer needed