Raphael Js - triangle image filler

CSS

body{
    background:#333;
}

JavaScript

// Creates canvas 320 Ă— 200 at 10, 50
var paper = Raphael(10, 60, 600, 200);
//draw triangle
var t = paper.path("M0 0L250 0L9000 9000L 0");
// Sets the fill attribute of the circle to red (#f00)
t.attr("fill", "url('http://lorempixel.com/100/100/')");
// Sets the stroke attribute of the circle to white
t.attr("stroke", "#f00");