Need opinions on possible miscarriage (warning photo attached)

Ciera
I went to the restroom this morning had light bleeding and what appeared to be something with a tail. No pain, but due to a condition I have, I am on pain medication so that could be why. Is this a miscarriage? I have had pregnancy symptoms and we have been TTC for over a year. This would be our second loss. Just want confirmation to my fears before I freak out.