It looks like gradients only work for fill image. Is there any chance to use gradient for stroke? For example to achieve this kind of effect on rectangle outline: 