Fix screenshot images layout problem in Firefox / IE

Fix screenshot images layout problem in Firefox / IE

The old one only worked in Chrome.