While I was praying I realized that there was a picture before me depicting people. I immediately placed it elsewhere and repented to Allah. Did I commit Shirk for unintentionally bowing to the picture even though my intention was to bow only to Allah?
Insofar as you are not intentionally worshipping or praying to the picture or the people and just had it there by accident, it is not shirk. However it is better not to pray in front of the picture (and you fixed that anyway so that is not a problem). Accidents happen!