While debugging, I found this line makes zoom in function failed to show the image at the center. After digging, I found the patch of bug 900425, https://github.com/mozilla-b2g/gaia/commit/ac2370485c61d7fe2ddd61ee75d990918443c905, had removed this line from gallery.css and handle it inside of media_frame.js.