Keep twig statements in src attributes

Fixed issue #18