correction for getFilesImage function in GetLinks class