render if filename is not None