I am trying to use a basic plane and texturing it with a doily for a table. The doily texture has an alpha layer. I used a mix shader with a transparency shader and the diffuse image shader and the factor from the image itself. I got a really weird result (picture below).
I tried using black for the color of the transparency and it ended up with this: