Fix up issues with sprite animations and texture coordinates