Adding a horizontal resize function that was supposed to fix the artifacting issues, but I'm not sure it did.