updated sleep graph directive to take a width and height param