title: uibezierpath with multiple line width and a background image (swift)
body: <p>I'm trying to draw several shapes (rectangle, triangle, circle, ...) in swift and for that, I use uibezierpath but I am not able to draw exactly what I want.
  I need to draw for example a rectangle, but the borders of this rectangle need to have different line width.
  To do that, I create different path then use the "appendpath" to merge them in one path. So that works, BUT I also need to have a background image in this rectangle.
  For that, I create a layer and set it an image. The issue is that, no background image are displayed when I use "appendpath", certainly because it doesn't recognize my drawing as a rectangle.</p>
  
  <p>I hope it is clear enough, but is there a way to draw a shape with a background image, and have different border width ?</p>
  
  <p>Thanks for your help !!</p>