Bug1106877 - [Gallery] - Fix of grey bars and cannot tap in thumbnails for images smaller than thumbnail container r=djf