rewrite image-center.js on twitter flight