add ability to pass in method render $filenames in array