Fix thumbnail image layout