Feature/render only once

Pull Request for issue #44

Added a buffer array in which we push a file to render only once.