Im not sure if this is a miscarriage😢

This might be a graphic picture just letting everyone know. But I really do need help. I didn’t know If was pregnant until this happened. I woke up cramping and my bed stained in blood but ignored it thinking It was my period and cleaned everything up. Once I went to the restroom this came out and I’m starting to think I had a miscarriage and was pregnant😢 this would be my first time so that’s why I want others thoughts about this. Was I pregnant?