While I was praying I had a specific image, of an individual sitting and throughout the prayer I would think of him, as if I was worshipping him (Pictured Allah (swt) as a human) but I know that Allah (swt) isn’t a human nor he can be seen nor felt. Does it invalidate my prayer?

Your prayer is valid, but if this happens again do your best to avoid such thoughts and instead bring your mind to contemplate the greatness of what Allah Has created, or the blessings he has given you.