added width and height, made draw function general over Str