Use objectName with basename for the filepath