Could I have had a miscarriage? tmi pics

So, I had unprotected sex the 4th, 6th and 7th of September. the 12th/14th I noticed I kept passing random blood clots. The biggest one was this 
And then after that I just had brown discharge which changed into white.  That was a week before my period was due. Wednesday the 23rd my period was due but it didn't show up. I took a test and saw this 
I swear there was a faint line there. However the next morning I took another one which was completely negative. Then this Saturday I had REALLY bad cramping and more brown discharge. which turned into random blood clots again: 
So obviously I guess I know I'm not pregnant, but could I have been? Otherwise I'm confused about the faint line and blood clots. Especially the one that happened before my period was due.