Convert image to a stencil