You are still upside down in those photos. Stand it upright the way it should be when riding. Put the front wheel back on and prop up the rear. Gravity is making your chain go the wrong way and gravity will fix it. That chain is rusted too, maybe just get a new one.