pixel calcs and broken video source loop