Exporting LatestImageByRegex func