Bug 898701 - [Gallery] image in thumbnails display not correctly