Easy way to make tiled sprites

Much more easy way to setup bordered sprites. Behavior like border-image from CSS3.